package com.lixin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lixin.entity.GroupMember;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lixin
 * @since 2023-08-08
 */
public interface IGroupMemberService extends IService<GroupMember> {

    GroupMember addOrUpdate(GroupMember groupMember);


    GroupMember builderMember(Integer groupId, boolean isAdmin, Integer userId, Date date);

    List<GroupMember> selectMemberByGroupId(Integer groupId);

    GroupMember selectByUserId(Integer userId);

    Integer deleteByGroupId(Integer groupId);
}
